/*
 * @Author: 晟松
 * @Date: 2021-12-16 23:48:49
 * @LastEditors: 晟松
 * @LastEditTime: 2022-02-27 22:48:54
 * @FilePath: \volunteer-vue3-admin\src\myApi\upload.js
 * @Description:
 */
import { _axios } from "../plugins/axios";

export const baseImgUrl = "https://qiniu.chengsong.info/";

/**
 * @description: 上传文件，注意使用fromdata格式
 * @param {*}
 * @return {*}
 */
export const uploadFile = (data) => {
    return _axios.post("/upload/file", data);
};
/**
 * @description: 本地存储文件
 * @param {*} data
 * @return {*}
 */
export const localFile = (data) => {
    return _axios.post("/upload/localFile", data);
};

/**
 * @description: 获取上传七牛云的token
 * @param {*}
 * @return {*}
 */
export const imgToken = (data) => {
    return _axios.post("/upload/imgToken", data);
};
